package com.cx.afc_android.ahttp.json;

import com.google.gson.stream.JsonReader;

import java.io.IOException;

/**
 * Created by chenxiang on 2020/11/9.
 */

public class IntegerTypeAdapter extends DoubleTypeAdapter {

    @Override
    public Number read(JsonReader in) throws IOException {
        Number number = super.read(in);
        if (number != null) {
            return number.intValue();
        }
        return null;
    }
}
